//
//  LSZThemesAlbumsVC+LCAVPlay.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/10/10.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZThemesAlbumsVC+LCAVPlay.h"

@implementation LSZThemesAlbumsVC (LCAVPlay)
-(void)creareAVPlay{
    // 安装通知
    [self setupNotificationsThemesAlbums];
}

- (void)dealloc {
    [self teardownNotificationsThemesAlbums];
}
#pragma mark - 通知处理 -
// 安装通知
- (void)setupNotificationsThemesAlbums {
    // 1. 安装播放状态发生变化的通知
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveNotificationThemesAlbums:) name:@"PUSHPLAYPAGE" object:nil];
}
// 卸载通知
- (void)teardownNotificationsThemesAlbums {
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}
#pragma mark - 通知处理回调
///跳转到播放页
-(void)receiveNotificationThemesAlbums:(NSNotification *)notification{
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"LCPlayStoryboard" bundle:nil];
    UIViewController *controller = [sb instantiateInitialViewController];
    [self presentViewController:controller animated:YES completion:nil];
}
@end
